package br.com.tcc.systemdx.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.validator.NotEmpty;

@Entity
@Table(name="temperaturadiaria")
public class TemperaturaDiaria extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5101056987188893466L;

	@NotEmpty
	private double temp;
	
	@NotEmpty
	@Temporal(TemporalType.TIMESTAMP)
	private Date data_ocorrencia;
	
	public double getTemp() {
		return temp;
	}

	public void setTemp(double temp) {
		this.temp = temp;
	}

	public Date getData_ocorrencia() {
		return data_ocorrencia;
	}

	public void setData_ocorrencia(Date data_ocorrencia) {
		this.data_ocorrencia = data_ocorrencia;
	}


	
}
